def gToKG(g):
    kg = g / 1000
    return str(kg) + "KG"


c = gToKG(10000)
print(c)
